import { Controller, Get, Query, Put } from '@nestjs/common';
import { FileService } from './file.service';

@Controller('file')
export class FileController {
  constructor(private readonly fileService: FileService) {}

  @Get('upload')
  async upload() {
    return this.fileService.upload();
  }

  @Get('presignedUrl')
  async presignedUrl(@Query('name') name: string) {
    return this.fileService.presignedUrl(name);
  }
}
